module dogre.exception;

import std.conv;

extern(C)
{
    const(char)* call_getFullDescription(void* ptr);
	void freeException(void* ptr);
}

class OgreException : Exception
{
    void* p;
    
    this(void* ptr)
    {
        p = ptr;
        assert(p);
        super(to!string(call_getFullDescription(p)));
    }
	~this(){}

    string getFullDescription()
    {
        return msg;
    }
}
